<script>
  $(document).ready(function() {
    $("#[php_property:id]").draggable({ snapMode: 'outer' });
    $( "#[php_property:id]" ).bind( "dragstop", function(event, ui) {
    });
});
  </script>
